#ifndef _SNODE_H_
#define _SNODE_H_
#include <iostream>

/**
 * @brief 
 * 单链表的节点定义 
 * @tparam ElemType 
 */

template <typename ElemType>
struct SNode
{
    /* data */
    ElemType data;
    SNode *next;
    SNode();
    SNode(const ElemType &e,SNode *p=NULL);
};

template <typename ElemType>
SNode<ElemType>::SNode()
{
    next = NULL;
}

template <typename ElemType>
SNode<ElemType>::SNode(const ElemType &e,SNode *p)
{
    data = e;
    next = p;
}



#endif // !_SNODE_H_
